package com.zjl.controller;

import com.zjl.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author EternalPain
 * @Date 2023/1/31 18:42
 * @Version 1.0
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    public UserService userService;

    /**
     * 查询用户余额
     */
    @GetMapping("/findMoney")
    public String findMoney() {
        return "余额为：" + userService.findMoney(1);
    }

}
